package org.dubnation.base.service;

import org.dubnation.base.query.BaseQuery;
import org.dubnation.base.util.PageInfo;
import java.io.Serializable;
import java.util.List;

public interface IBaseService<T> {
    //增
    void insert(T t);
    //删
    void delete(Serializable id);
    //改
    void update(T t);
    //查
    List<T> queryAll();
    T queryById(Serializable id);
    //分页查
    PageInfo<T> queryPage(BaseQuery baseQuery);
    //批量删除
    void batchDelete(List<Long> ids);
}
